<template>
	<view>
		<view class="" :style="'height: '+statusBarHeight+'px;'"></view>
		<view class="team">团队</view>
		<view class="allteam flex">
			<view class="list">
				<view class="">团队人数</view>
				<view class="allteam_num">128</view>
			</view>
			<view class="">
				<view class="">团队设备</view>
				<view class="allteam_num">1234</view>
			</view>
		</view>
		<scroll-view scroll-y="true" >
			<view class="" :style="'height:'+scrollheight+ 'px;'">
				<view class="teamlist" v-for="(item,index) in 5" :key="index" >
					<view class="teamlist_top flex">
						<image src="" mode=""></image>
						<view class="">
							<view class="flex">
								<view class="name">李白</view>
								<view class="text">粉丝</view>
							</view>
							<view class="accent">账号：A123456</view>
						</view>
					</view>
					<view class="teamlist_line"></view>
					<view class="teamlist_bottom flex">
						<view class="box">
							<view class="name">个人设备</view>
							<view class="num">78</view>
						</view>
						<view class="box">
							<view class="name">我的直营</view>
							<view class="num">16</view>
						</view>
						<view class="box">
							<view class="name">分销设备</view>
							<view class="num">12</view>
						</view>
						<view class="box">
							<view class="name">我的客户</view>
							<view class="num">222</view>
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight:0,
				scrollheight:0
			}
		},
		methods: {
			
		},
		onShow() {
			const phoneInfo = uni.getSystemInfoSync(); // 获取手机系统信息
			this.statusBarHeight = phoneInfo.statusBarHeight
			this.scrollheight=uni.getWindowInfo().windowHeight-160
		},
	}
</script>

<style lang="scss">
	page{
		width: 100%;
		height: 100%;
		background-image: url('../../static/wallet/bg@2x.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
	}
	.team{
		width: 750rpx;
		height: 88rpx;
		line-height: 88rpx;
		text-align: center;
		font-family: PingFangSC, PingFang SC;
		font-weight: 600;
		font-size: 36rpx;
		color: #333333;
	}
	.allteam{
		width: 690rpx;
		height: 150rpx;
		background: #9999FF;
		border-radius: 24rpx;
		padding: 30rpx;
		box-sizing: border-box;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #FFFFFF;
		margin: 30rpx auto;
		&_num{
			font-weight: 500;
			font-size: 44rpx;
		}
		.list{
			width: 50%;
		}
	}
	.teamlist{
		width: 690rpx;
		height: 258rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		box-sizing: border-box;
		margin: 0 auto 30rpx;
		&_top{
			padding: 30rpx;
			align-items: center;
			.flex{
				align-items: center;
			}
			image{
				width: 72rpx;
				height: 72rpx;
				background: #9999FF;
				border-radius: 50%;
				margin-right: 20rpx;
			}
			.name{
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				color: #333333;
			}
			.text{
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 18rpx;
				color: #9999FF;
				width: 56rpx;
				height: 32rpx;
				// line-height: 32rpx;
				text-align: center;
				border-radius: 4rpx;
				border: 2rpx solid #9999FF;
				margin-left: 10rpx;
			}
			.accent{
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
				margin-top: 10rpx;
			}
		}
		&_line{
			width: 690rpx;
			height: 2rpx;
			background: #EAEAEA;
		}
		&_bottom{
			padding: 30rpx;
			.box{
				width: 25%;
			}
			.name{
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
			}
			.num{
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #333333;
			}
		}
	}
</style>
